package com.neuedu.ylbx.controller;

import com.neuedu.ylbx.service.ExpenseDetailsService;
import com.neuedu.ylbx.utils.ResultVo;
import com.neuedu.ylbx.vo.ExpenseDetailVo;
import com.neuedu.ylbx.vo.PatientsVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/reimbursement")
@Api(tags = "费用明细管理")
@CrossOrigin
public class ExpenseDetailsController {
    @Autowired
    private ExpenseDetailsService expenseDetailsService;

    @ApiOperation("获取参保人员费用明细")
    @GetMapping("/expenses/{participantsId}")
    public ResultVo<List<ExpenseDetailVo>> getExpensesDetails (Integer id) throws Exception {
        return expenseDetailsService.getExpensesDetails(id);
    }
}
